<template>
  <view>
    <web-view :webview-styles="webviewStyles" :src="url"></web-view>
  </view>
</template>

<script setup lang="ts">
import { onLaunch, onLoad, onShow } from '@dcloudio/uni-app'

const url = ref('')

const webviewStyles = {
  progress: {
    color: '#FF3333',
  },
}

onLoad((options) => {
  url.value = decodeURIComponent(options?.url)
})
</script>

<style></style>
